/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MarketingStrategy.java
 *
 * Created on 2011-10-21, 19:36:46
 */
package JavaApplication1;

/**
 *
 * @author mengqingyi
 */
public class MarketingStrategy extends javax.swing.JFrame {
	// Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addPriceGift;
    private javax.swing.JButton addgoodsGift;
    private javax.swing.JButton cancel1;
    private javax.swing.JButton cancel2;
    private javax.swing.JButton cancel3;
    private javax.swing.JButton cancel4;
    private javax.swing.JButton cancel5;
    private javax.swing.JButton cancelGoodsGift;
    private javax.swing.JButton cancelPeiceGift;
    private javax.swing.JButton cancel_set;
    private javax.swing.JButton deleteDiscount;
    private javax.swing.JButton deleteGift;
    private javax.swing.JButton deleteGoodsGift;
    private javax.swing.JButton deletePriceDiscount;
    private javax.swing.JButton deleteeDisctGoods;
    private javax.swing.JButton set;
    private javax.swing.JButton set1;
    private javax.swing.JButton showDiscountGoodsInfo;
    private javax.swing.JButton showGiftsInfo_Price;
    private javax.swing.JButton showRelevantGiftInfo;
    private javax.swing.JButton showRelevantGoodsInfo_Goods;
    private javax.swing.JButton yes1;
    private javax.swing.JButton yes2;
    private javax.swing.JButton yes3;
    private javax.swing.JButton yes4;
    private javax.swing.JButton yes5;
    
    private javax.swing.JTabbedPane basePanel;
    
    private javax.swing.JLabel beginDayLabel1;
    private javax.swing.JLabel beginDayLabel2;
    private javax.swing.JLabel beginDayLabel3;
    private javax.swing.JLabel beginDayLabel4;
    private javax.swing.JLabel beginMonthLabel1;
    private javax.swing.JLabel beginMonthLabel2;
    private javax.swing.JLabel beginMonthLabel4;
    private javax.swing.JLabel beginYearLabel1;
    private javax.swing.JLabel beginYearLabel2;
    private javax.swing.JLabel beginYearLabel3;
    private javax.swing.JLabel beginYearLabel4;
    private javax.swing.JLabel begin_MonthLabel3;
    private javax.swing.JLabel discount;
    private javax.swing.JLabel disctGoodsBasicInfoLabel;
    private javax.swing.JLabel disctGoodsListLabel;
    private javax.swing.JLabel disountGoodsIDLabel;
    private javax.swing.JLabel disountedPriceLabel;
    private javax.swing.JLabel endDayLabel1;
    private javax.swing.JLabel endDayLabel2;
    private javax.swing.JLabel endDayLabel3;
    private javax.swing.JLabel endDayLabel4;
    private javax.swing.JLabel endMonthLabel1;
    private javax.swing.JLabel endMonthLabel2;
    private javax.swing.JLabel endMonthLabel3;
    private javax.swing.JLabel endMonthLabel4;
    private javax.swing.JLabel endYearLabel1;
    private javax.swing.JLabel endYearLabel2;
    private javax.swing.JLabel endYearLabel3;
    private javax.swing.JLabel endYearLabel4;
    private javax.swing.JLabel giftNumLabel_Price;
    private javax.swing.JLabel giftRelevantGoodsIDLabel_Goods;
    private javax.swing.JLabel giftRelevantGoodsIDLabel_Price;
    private javax.swing.JLabel giftsInfoLabel_Goods;
    private javax.swing.JLabel giftsInfoLabel_Price;
    private javax.swing.JLabel giftsNumLabel_Goods;
    private javax.swing.JLabel goodsDisctBeginLabel;
    private javax.swing.JLabel goodsDisctEndLabel;
    private javax.swing.JLabel goodsGiftBeginLabel;
    private javax.swing.JLabel goodsGiftEndLabel;
    private javax.swing.JLabel goodsGiftListLabel;
    private javax.swing.JLabel goodsInfoLabel_Goods;
    private javax.swing.JLabel priceDisctBeginLabel;
    private javax.swing.JLabel priceDisctEndLabel;
    private javax.swing.JLabel priceDisctListLabel;
    private javax.swing.JLabel priceGiftBeginLabel;
    private javax.swing.JLabel priceGiftEndLabel;
    private javax.swing.JLabel priceGiftListLabel;
    private javax.swing.JLabel qualifiedPriceLabel_Disct;
    private javax.swing.JLabel qualifiedPriceLabel_Gift;
    private javax.swing.JLabel relevantGiftsIDLabel_Goods;
    
    private javax.swing.JPanel deleteStragegy;
    private javax.swing.JPanel discountPanel;
    private javax.swing.JPanel giftPanel;
    private javax.swing.JPanel goodsDiscount;
    private javax.swing.JPanel goodsDiscountSettingPanel;
    private javax.swing.JPanel goodsGifts;
    private javax.swing.JPanel goodsGiftsSettingPanel;
    private javax.swing.JPanel priceDiscount;
    private javax.swing.JPanel priceDiscountSettingPanel;
    private javax.swing.JPanel priceGifts;
    private javax.swing.JPanel priceGiftsSettingPanel;
    
    private javax.swing.JScrollPane discountGoodsIDInput;
    private javax.swing.JScrollPane discountInput;
    private javax.swing.JScrollPane discountList;
    private javax.swing.JScrollPane discountedPriceInput;
    private javax.swing.JScrollPane disctGoodsList;
    private javax.swing.JScrollPane disctGooodsBasicInfo1;
    private javax.swing.JScrollPane giftList;
    private javax.swing.JScrollPane giftNumInput_Price;
    private javax.swing.JScrollPane giftRelevantGoodsIDInput_Goods;
    private javax.swing.JScrollPane giftRelevantGoodsIDInput_Price;
    private javax.swing.JScrollPane giftRelevantGoodsInfo_Goods;
    private javax.swing.JScrollPane giftsInfo_Goods;
    private javax.swing.JScrollPane giftsInfo_Price;
    private javax.swing.JScrollPane giftsNumInput_Goods;
    private javax.swing.JScrollPane goodsDisctBegin_Year;
    private javax.swing.JScrollPane goodsDisctBegin_Day;
    private javax.swing.JScrollPane goodsDisctEnd_Day;
    private javax.swing.JScrollPane goodsDisctEnd_Year;
    private javax.swing.JScrollPane goodsGiftBegin_Day;
    private javax.swing.JScrollPane goodsGiftBegin_Year;
    private javax.swing.JScrollPane goodsGiftEnd_Day;
    private javax.swing.JScrollPane goodsGiftEnd_Year;
    private javax.swing.JScrollPane goodsGiftIDInput;
    private javax.swing.JScrollPane goodsGiftList;
    private javax.swing.JScrollPane priceDiscrBegin_DayInput;
    private javax.swing.JScrollPane priceDisctBegin_YearInput;
    private javax.swing.JScrollPane priceDisctEnd_DayInput;
    private javax.swing.JScrollPane priceDisctEnd_YearInput;
    private javax.swing.JScrollPane priceDisctList;
    private javax.swing.JScrollPane priceGiftBegin_Day;
    private javax.swing.JScrollPane priceGiftBegin_Year;
    private javax.swing.JScrollPane priceGiftEnd_Day;
    private javax.swing.JScrollPane priceGiftEnd_Year;
    private javax.swing.JScrollPane priceGiftList;
    private javax.swing.JScrollPane qualifiedPriceInput_Disct;
    private javax.swing.JScrollPane qualifiedPriceInput_Gift;

    private javax.swing.JTextPane discountGoodsIDText;
    private javax.swing.JTextPane discountText;
    private javax.swing.JTextPane discountedPriceText;
    private javax.swing.JTextPane giftNumText_Price;
    private javax.swing.JTextPane giftRelevantGoodsIDText;
    private javax.swing.JTextPane giftRelevantGoodsIDText_Price;
    private javax.swing.JTextPane goodsDisctBegin_DayText;
    private javax.swing.JTextPane goodsDisctBegin_YearText;
    private javax.swing.JTextPane goodsDisctEnd_DayText;
    private javax.swing.JTextPane goodsDisctEnd_YearText;
    private javax.swing.JTextPane goodsGiftBegin_YearText;
    private javax.swing.JTextPane goodsGiftEnd_Yeartext;
    private javax.swing.JTextPane goodsGiftIDtext;
    private javax.swing.JTextPane jTextPane15;
    private javax.swing.JTextPane jTextPane24;
    private javax.swing.JTextPane jTextPane26;
    private javax.swing.JTextPane priceDisctBegin_DayText;
    private javax.swing.JTextPane priceDisctBegin_YearText;
    private javax.swing.JTextPane priceDisctEnd_DayText;
    private javax.swing.JTextPane priceDisctEnd_YearText;
    private javax.swing.JTextPane priceGiftBegin_DayText;
    private javax.swing.JTextPane priceGiftBegin_YearTest;
    private javax.swing.JTextPane priceGiftEnd_DayText;
    private javax.swing.JTextPane priceGiftEnd_YearTest;
    private javax.swing.JTextPane qualifiedPriceText_Disct;
    private javax.swing.JTextPane qualifiedPriceText_Gift;
    
    private javax.swing.JComboBox priceDisctBegin_Month;
    private javax.swing.JComboBox priceDisctEnd_Month;
    private javax.swing.JComboBox goodsDisctBegin_Month;
    private javax.swing.JComboBox goodsDisctEnd_Month;
    private javax.swing.JComboBox goodsGiftEnd_Month;
    private javax.swing.JComboBox goodsGiftBegin_Month;
    private javax.swing.JComboBox priceGiftBegin_Month;
    private javax.swing.JComboBox priceGiftEnd_Month;
    
    private javax.swing.JTable discountListTable;
    private javax.swing.JTable disctGoodsBasicInfoTable;
    private javax.swing.JTable disctGoodsListtable;
    private javax.swing.JTable giftListTable;
    private javax.swing.JTable giftsInfoTable_Goods;
    private javax.swing.JTable giftsInfoTable_Price;
    private javax.swing.JTable goodGiftListTable;
    private javax.swing.JTable priceDisctListTable;
    private javax.swing.JTable priceGiftListtable;
    private javax.swing.JTable relevantGoodsInfoTabel_Goods;
    // End of variables declaration//GEN-END:variables

    /** Creates new form MarketingStrategy */
    public MarketingStrategy() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

    	showDiscountGoodsInfo = new javax.swing.JButton();
    	set1 = new javax.swing.JButton();
    	yes1 = new javax.swing.JButton();
        cancel1 = new javax.swing.JButton();
        deleteeDisctGoods = new javax.swing.JButton();
        set = new javax.swing.JButton();
        cancel_set = new javax.swing.JButton();
        yes2 = new javax.swing.JButton();
        cancel2 = new javax.swing.JButton();
        deletePriceDiscount = new javax.swing.JButton();
        showRelevantGoodsInfo_Goods = new javax.swing.JButton();
        deleteDiscount = new javax.swing.JButton();
        deleteGift = new javax.swing.JButton();
        yes5 = new javax.swing.JButton();
        cancel5 = new javax.swing.JButton();
        addgoodsGift = new javax.swing.JButton();
        cancelGoodsGift = new javax.swing.JButton();
        showRelevantGiftInfo = new javax.swing.JButton();
        deleteGoodsGift = new javax.swing.JButton();
        yes3 = new javax.swing.JButton();
        cancel3 = new javax.swing.JButton();
        showGiftsInfo_Price = new javax.swing.JButton();
        addPriceGift = new javax.swing.JButton();
        cancelPeiceGift = new javax.swing.JButton();
        yes4 = new javax.swing.JButton();
        cancel4 = new javax.swing.JButton();
        
        basePanel = new javax.swing.JTabbedPane();
        
        goodsDiscount = new javax.swing.JPanel();
        goodsDiscountSettingPanel = new javax.swing.JPanel();
        priceDiscount = new javax.swing.JPanel();
        priceDiscountSettingPanel = new javax.swing.JPanel();
        goodsGifts = new javax.swing.JPanel();
        goodsGiftsSettingPanel = new javax.swing.JPanel();
        priceGifts = new javax.swing.JPanel();
        priceGiftsSettingPanel = new javax.swing.JPanel();
        deleteStragegy = new javax.swing.JPanel();
        discountPanel = new javax.swing.JPanel();
        giftPanel = new javax.swing.JPanel();
        
        disountGoodsIDLabel = new javax.swing.JLabel();
        disountedPriceLabel = new javax.swing.JLabel();
        goodsDisctBeginLabel = new javax.swing.JLabel();
        goodsDisctEndLabel = new javax.swing.JLabel();
        beginMonthLabel1 = new javax.swing.JLabel();
        beginDayLabel1 = new javax.swing.JLabel();
        endYearLabel1 = new javax.swing.JLabel();
        endMonthLabel1 = new javax.swing.JLabel();
        endDayLabel1 = new javax.swing.JLabel();
        beginYearLabel1 = new javax.swing.JLabel();
        disctGoodsBasicInfoLabel = new javax.swing.JLabel();
        disctGoodsListLabel = new javax.swing.JLabel();
        qualifiedPriceLabel_Disct = new javax.swing.JLabel();
        discount = new javax.swing.JLabel();
        priceDisctBeginLabel = new javax.swing.JLabel();
        priceDisctEndLabel = new javax.swing.JLabel();
        beginYearLabel2 = new javax.swing.JLabel();
        endYearLabel2 = new javax.swing.JLabel();
        beginMonthLabel2 = new javax.swing.JLabel();
        endMonthLabel2 = new javax.swing.JLabel();
        beginDayLabel2 = new javax.swing.JLabel();
        endDayLabel2 = new javax.swing.JLabel();
        priceDisctListLabel = new javax.swing.JLabel();
        giftRelevantGoodsIDLabel_Goods = new javax.swing.JLabel();
        relevantGiftsIDLabel_Goods = new javax.swing.JLabel();
        goodsInfoLabel_Goods = new javax.swing.JLabel();
        giftsInfoLabel_Goods = new javax.swing.JLabel();
        giftsNumLabel_Goods = new javax.swing.JLabel();
        goodsGiftBeginLabel = new javax.swing.JLabel();
        beginYearLabel3 = new javax.swing.JLabel();
        begin_MonthLabel3 = new javax.swing.JLabel();
        beginDayLabel3 = new javax.swing.JLabel();
        goodsGiftEndLabel = new javax.swing.JLabel();
        endYearLabel3 = new javax.swing.JLabel();
        endMonthLabel3 = new javax.swing.JLabel();
        endDayLabel3 = new javax.swing.JLabel();
        goodsGiftListLabel = new javax.swing.JLabel();
        qualifiedPriceLabel_Gift = new javax.swing.JLabel();
        giftRelevantGoodsIDLabel_Price = new javax.swing.JLabel();
        giftsInfoLabel_Price = new javax.swing.JLabel();
        giftNumLabel_Price = new javax.swing.JLabel();
        priceGiftBeginLabel = new javax.swing.JLabel();
        priceGiftEndLabel = new javax.swing.JLabel();
        endYearLabel4 = new javax.swing.JLabel();
        beginYearLabel4 = new javax.swing.JLabel();
        beginMonthLabel4 = new javax.swing.JLabel();
        endMonthLabel4 = new javax.swing.JLabel();
        beginDayLabel4 = new javax.swing.JLabel();
        endDayLabel4 = new javax.swing.JLabel();
        priceGiftListLabel = new javax.swing.JLabel();
        
        discountGoodsIDInput = new javax.swing.JScrollPane();
        discountedPriceInput = new javax.swing.JScrollPane();
        goodsDisctBegin_Year = new javax.swing.JScrollPane();
        goodsDisctBegin_Day = new javax.swing.JScrollPane();
        goodsDisctEnd_Year = new javax.swing.JScrollPane();
        goodsDisctEnd_Day = new javax.swing.JScrollPane();
        disctGooodsBasicInfo1 = new javax.swing.JScrollPane();
        disctGoodsList = new javax.swing.JScrollPane();
        qualifiedPriceInput_Disct = new javax.swing.JScrollPane();
        discountInput = new javax.swing.JScrollPane();
        priceDisctBegin_YearInput = new javax.swing.JScrollPane();
        priceDisctEnd_YearInput = new javax.swing.JScrollPane();
        priceDiscrBegin_DayInput = new javax.swing.JScrollPane();
        priceDisctEnd_DayInput = new javax.swing.JScrollPane();
        priceDisctList = new javax.swing.JScrollPane();
        giftRelevantGoodsInfo_Goods = new javax.swing.JScrollPane();
        giftRelevantGoodsIDInput_Goods = new javax.swing.JScrollPane();
        goodsGiftIDInput = new javax.swing.JScrollPane();
        giftsInfo_Goods = new javax.swing.JScrollPane();
        giftsNumInput_Goods = new javax.swing.JScrollPane();
        goodsGiftBegin_Year = new javax.swing.JScrollPane();
        goodsGiftBegin_Day = new javax.swing.JScrollPane();
        goodsGiftEnd_Year = new javax.swing.JScrollPane();
        goodsGiftEnd_Day = new javax.swing.JScrollPane();
        goodsGiftList = new javax.swing.JScrollPane();
        qualifiedPriceInput_Gift = new javax.swing.JScrollPane();
        giftsInfo_Price = new javax.swing.JScrollPane();
        giftNumInput_Price = new javax.swing.JScrollPane();
        giftRelevantGoodsIDInput_Price = new javax.swing.JScrollPane();
        priceGiftBegin_Year = new javax.swing.JScrollPane();
        priceGiftEnd_Year = new javax.swing.JScrollPane();
        priceGiftBegin_Day = new javax.swing.JScrollPane();
        priceGiftEnd_Day = new javax.swing.JScrollPane();
        priceGiftList = new javax.swing.JScrollPane();
        discountList = new javax.swing.JScrollPane();
        giftList = new javax.swing.JScrollPane();
        
        discountGoodsIDText = new javax.swing.JTextPane();
        discountedPriceText = new javax.swing.JTextPane();
        goodsDisctBegin_YearText = new javax.swing.JTextPane();
        goodsDisctBegin_DayText = new javax.swing.JTextPane();
        goodsDisctEnd_YearText = new javax.swing.JTextPane();
        goodsDisctEnd_DayText = new javax.swing.JTextPane();
        qualifiedPriceText_Disct = new javax.swing.JTextPane();
        discountText = new javax.swing.JTextPane();
        priceDisctBegin_YearText = new javax.swing.JTextPane();
        priceDisctEnd_YearText = new javax.swing.JTextPane();
        priceDisctBegin_DayText = new javax.swing.JTextPane();
        priceDisctEnd_DayText = new javax.swing.JTextPane();
        giftRelevantGoodsIDText = new javax.swing.JTextPane();
        goodsGiftIDtext = new javax.swing.JTextPane();
        jTextPane15 = new javax.swing.JTextPane();
        goodsGiftBegin_YearText = new javax.swing.JTextPane();
        goodsGiftEnd_Yeartext = new javax.swing.JTextPane();
        jTextPane26 = new javax.swing.JTextPane();
        jTextPane24 = new javax.swing.JTextPane();
        giftRelevantGoodsIDText_Price = new javax.swing.JTextPane();
        qualifiedPriceText_Gift = new javax.swing.JTextPane();
        giftNumText_Price = new javax.swing.JTextPane();
        priceGiftEnd_DayText = new javax.swing.JTextPane();
        priceGiftBegin_YearTest = new javax.swing.JTextPane();
        priceGiftEnd_YearTest = new javax.swing.JTextPane();
        priceGiftBegin_DayText = new javax.swing.JTextPane();
        
        goodsDisctBegin_Month = new javax.swing.JComboBox();
        goodsDisctEnd_Month = new javax.swing.JComboBox();
        priceDisctBegin_Month = new javax.swing.JComboBox();
        priceDisctEnd_Month = new javax.swing.JComboBox();
        goodsGiftBegin_Month = new javax.swing.JComboBox();
        goodsGiftEnd_Month = new javax.swing.JComboBox();
        priceGiftBegin_Month = new javax.swing.JComboBox();
        priceGiftEnd_Month = new javax.swing.JComboBox();
        
        disctGoodsBasicInfoTable = new javax.swing.JTable();
        disctGoodsListtable = new javax.swing.JTable();
        priceDisctListTable = new javax.swing.JTable();
        relevantGoodsInfoTabel_Goods = new javax.swing.JTable();
        giftsInfoTable_Goods = new javax.swing.JTable();
        goodGiftListTable = new javax.swing.JTable();
        giftsInfoTable_Price = new javax.swing.JTable();
        priceGiftListtable = new javax.swing.JTable();
        discountListTable = new javax.swing.JTable();
        giftListTable = new javax.swing.JTable();
     
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("营销策略制定");

        goodsDiscount.setBackground(new java.awt.Color(211, 220, 249));

        goodsDiscountSettingPanel.setBackground(new java.awt.Color(211, 220, 249));
        goodsDiscountSettingPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "设置特价商品", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        disountGoodsIDLabel.setText("请输入特价商品标识：");

        discountGoodsIDInput.setViewportView(discountGoodsIDText);

        showDiscountGoodsInfo.setText("显示商品基本信息");
        showDiscountGoodsInfo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showDiscountGoodsInfoActionPerformed(evt);
            }
        });

        disountedPriceLabel.setText("商品特价（元）：");

        goodsDisctBeginLabel.setText("特价开始日期：");

        goodsDisctEndLabel.setText("特价结束日期：");

        discountedPriceInput.setViewportView(discountedPriceText);

        goodsDisctBegin_Year.setViewportView(goodsDisctBegin_YearText);

        goodsDisctBegin_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        beginMonthLabel1.setText("月");

        goodsDisctBegin_Day.setViewportView(goodsDisctBegin_DayText);

        beginDayLabel1.setText("日");

        goodsDisctEnd_Year.setViewportView(goodsDisctEnd_YearText);

        endYearLabel1.setText("年");

        goodsDisctEnd_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        endMonthLabel1.setText("月");

        goodsDisctEnd_Day.setViewportView(goodsDisctEnd_DayText);

        endDayLabel1.setText("日");

        set1.setText("设置");

        beginYearLabel1.setText("年");

        javax.swing.GroupLayout goodsDiscountSettingPanelLayout = new javax.swing.GroupLayout(goodsDiscountSettingPanel);
        goodsDiscountSettingPanel.setLayout(goodsDiscountSettingPanelLayout);
        goodsDiscountSettingPanelLayout.setHorizontalGroup(
            goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, goodsDiscountSettingPanelLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(disountGoodsIDLabel)
                    .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(goodsDisctBeginLabel)
                            .addComponent(goodsDisctEndLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(goodsDisctEnd_Year, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)
                            .addComponent(goodsDisctBegin_Year, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(endYearLabel1)
                            .addComponent(beginYearLabel1))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                .addComponent(goodsDisctBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(beginMonthLabel1))
                            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                .addComponent(goodsDisctEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(endMonthLabel1)))
                        .addGap(12, 12, 12)
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(goodsDisctEnd_Day, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                            .addComponent(goodsDisctBegin_Day, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(endDayLabel1)
                            .addComponent(beginDayLabel1))
                        .addGap(31, 31, 31)
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                .addComponent(disountedPriceLabel)
                                .addGap(18, 18, 18)
                                .addComponent(discountedPriceInput, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(set1)))
                    .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                        .addComponent(discountGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(57, 57, 57)
                        .addComponent(showDiscountGoodsInfo)))
                .addGap(70, 70, 70))
        );
        goodsDiscountSettingPanelLayout.setVerticalGroup(
            goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(disountGoodsIDLabel)
                    .addComponent(discountGoodsIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(showDiscountGoodsInfo))
                .addGap(21, 21, 21)
                .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, goodsDiscountSettingPanelLayout.createSequentialGroup()
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                .addComponent(goodsDisctBeginLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGap(15, 15, 15))
                            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(goodsDisctBegin_Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                            .addGap(2, 2, 2)
                                            .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(goodsDisctBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(beginMonthLabel1)
                                                .addComponent(beginYearLabel1)))
                                        .addComponent(goodsDisctBegin_Day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(beginDayLabel1, javax.swing.GroupLayout.Alignment.TRAILING)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(goodsDisctEndLabel)
                            .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(goodsDisctEnd_Day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(goodsDisctEnd_Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(endYearLabel1)
                                        .addComponent(goodsDisctEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(endMonthLabel1))
                                    .addComponent(endDayLabel1))))
                        .addGap(40, 40, 40))
                    .addGroup(goodsDiscountSettingPanelLayout.createSequentialGroup()
                        .addGroup(goodsDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(disountedPriceLabel)
                            .addComponent(discountedPriceInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(set1)
                        .addContainerGap())))
        );

        disctGoodsBasicInfoTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        disctGooodsBasicInfo1.setViewportView(disctGoodsBasicInfoTable);

        disctGoodsBasicInfoLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        disctGoodsBasicInfoLabel.setText("商品基本信息");

        disctGoodsListLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        disctGoodsListLabel.setText("特价商品列表");

        disctGoodsListtable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格", "商品特价", "开始日期", "null"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        disctGoodsList.setViewportView(disctGoodsListtable);

        yes1.setText("确定");
        yes1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yes1ActionPerformed(evt);
            }
        });

        cancel1.setText("取消");

        deleteeDisctGoods.setText("删除选中策略");

        javax.swing.GroupLayout goodsDiscountLayout = new javax.swing.GroupLayout(goodsDiscount);
        goodsDiscount.setLayout(goodsDiscountLayout);
        goodsDiscountLayout.setHorizontalGroup(
            goodsDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsDiscountLayout.createSequentialGroup()
                .addGap(56, 56, 56)
                .addGroup(goodsDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, goodsDiscountLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 90, Short.MAX_VALUE)
                        .addComponent(disctGooodsBasicInfo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(97, 97, 97))
                    .addGroup(goodsDiscountLayout.createSequentialGroup()
                        .addComponent(disctGoodsListLabel)
                        .addGap(132, 132, 132)
                        .addComponent(deleteeDisctGoods)
                        .addContainerGap())
                    .addGroup(goodsDiscountLayout.createSequentialGroup()
                        .addComponent(disctGoodsBasicInfoLabel)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, goodsDiscountLayout.createSequentialGroup()
                        .addGroup(goodsDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(disctGoodsList, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 599, Short.MAX_VALUE)
                            .addComponent(goodsDiscountSettingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(40, 40, 40))))
            .addGroup(goodsDiscountLayout.createSequentialGroup()
                .addGap(184, 184, 184)
                .addComponent(yes1)
                .addGap(143, 143, 143)
                .addComponent(cancel1)
                .addContainerGap(254, Short.MAX_VALUE))
        );
        goodsDiscountLayout.setVerticalGroup(
            goodsDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsDiscountLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(goodsDiscountSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(disctGoodsBasicInfoLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(disctGooodsBasicInfo1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(goodsDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(disctGoodsListLabel)
                    .addComponent(deleteeDisctGoods))
                .addGap(10, 10, 10)
                .addComponent(disctGoodsList, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(55, 55, 55)
                .addGroup(goodsDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cancel1)
                    .addComponent(yes1))
                .addGap(43, 43, 43))
        );

        basePanel.addTab("商品特价", goodsDiscount);

        priceDiscount.setBackground(new java.awt.Color(211, 220, 249));

        priceDiscountSettingPanel.setBackground(new java.awt.Color(211, 220, 249));
        priceDiscountSettingPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "总额特价信息", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        qualifiedPriceLabel_Disct.setText("额度：");

        qualifiedPriceInput_Disct.setViewportView(qualifiedPriceText_Disct);

        discount.setText("折扣率：");

        discountInput.setViewportView(discountText);

        priceDisctBeginLabel.setText("特价开始日期：");

        priceDisctEndLabel.setText("特价结束日期：");

        priceDisctBegin_YearInput.setViewportView(priceDisctBegin_YearText);

        priceDisctEnd_YearInput.setViewportView(priceDisctEnd_YearText);

        beginYearLabel2.setText("年");

        endYearLabel2.setText("年");

        priceDisctBegin_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        priceDisctEnd_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        beginMonthLabel2.setText("月");

        endMonthLabel2.setText("月");

        priceDiscrBegin_DayInput.setViewportView(priceDisctBegin_DayText);

        priceDisctEnd_DayInput.setViewportView(priceDisctEnd_DayText);

        beginDayLabel2.setText("日");

        endDayLabel2.setText("日");

        set.setText("设置");

        cancel_set.setText("取消");
        cancel_set.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel_setActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout priceDiscountSettingPanelLayout = new javax.swing.GroupLayout(priceDiscountSettingPanel);
        priceDiscountSettingPanel.setLayout(priceDiscountSettingPanelLayout);
        priceDiscountSettingPanelLayout.setHorizontalGroup(
            priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(set)
                    .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                            .addComponent(discount)
                            .addGap(18, 18, 18)
                            .addComponent(discountInput))
                        .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                            .addComponent(qualifiedPriceLabel_Disct)
                            .addGap(30, 30, 30)
                            .addComponent(qualifiedPriceInput_Disct, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                                .addComponent(priceDisctBeginLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(priceDisctBegin_YearInput, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(beginYearLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(priceDisctBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(beginMonthLabel2)
                                .addGap(10, 10, 10)
                                .addComponent(priceDiscrBegin_DayInput, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))
                            .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                                .addComponent(priceDisctEndLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(priceDisctEnd_YearInput, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(endYearLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(priceDisctEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(endMonthLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(priceDisctEnd_DayInput, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(beginDayLabel2)
                            .addComponent(endDayLabel2))
                        .addGap(33, 33, 33))
                    .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                        .addGap(57, 57, 57)
                        .addComponent(cancel_set)
                        .addContainerGap())))
        );
        priceDiscountSettingPanelLayout.setVerticalGroup(
            priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(beginDayLabel2)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(priceDiscrBegin_DayInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(priceDisctBegin_YearInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(priceDisctBeginLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(qualifiedPriceInput_Disct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(qualifiedPriceLabel_Disct)))
                            .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(beginYearLabel2)
                                .addComponent(priceDisctBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(beginMonthLabel2)))))
                .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(endDayLabel2))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(priceDisctEnd_DayInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(endYearLabel2)
                                    .addComponent(priceDisctEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(endMonthLabel2)))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(priceDisctEnd_YearInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                                        .addGap(20, 20, 20)
                                        .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(discount)
                                            .addComponent(discountInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGroup(priceDiscountSettingPanelLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(priceDisctEndLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)))))))
                .addGap(26, 26, 26)
                .addGroup(priceDiscountSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(set)
                    .addComponent(cancel_set))
                .addContainerGap())
        );

        priceDisctListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "特价额度", "折扣率", "开始日期", "结束日期"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        priceDisctList.setViewportView(priceDisctListTable);

        priceDisctListLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        priceDisctListLabel.setText("总额特价列表");

        yes2.setText("确定");

        cancel2.setText("取消");

        deletePriceDiscount.setText("删除选中策略");

        javax.swing.GroupLayout priceDiscountLayout = new javax.swing.GroupLayout(priceDiscount);
        priceDiscount.setLayout(priceDiscountLayout);
        priceDiscountLayout.setHorizontalGroup(
            priceDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceDiscountLayout.createSequentialGroup()
                .addGroup(priceDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(priceDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(priceDiscountLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(priceDisctList, javax.swing.GroupLayout.PREFERRED_SIZE, 588, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountLayout.createSequentialGroup()
                            .addGap(36, 36, 36)
                            .addComponent(priceDiscountSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, priceDiscountLayout.createSequentialGroup()
                            .addGap(21, 21, 21)
                            .addComponent(priceDisctListLabel)
                            .addGap(138, 138, 138)
                            .addComponent(deletePriceDiscount)))
                    .addGroup(priceDiscountLayout.createSequentialGroup()
                        .addGap(187, 187, 187)
                        .addComponent(yes2)
                        .addGap(156, 156, 156)
                        .addComponent(cancel2)))
                .addContainerGap(41, Short.MAX_VALUE))
        );
        priceDiscountLayout.setVerticalGroup(
            priceDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceDiscountLayout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(priceDiscountSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(11, 11, 11)
                .addGroup(priceDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(priceDisctListLabel)
                    .addComponent(deletePriceDiscount))
                .addGap(18, 18, 18)
                .addComponent(priceDisctList, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85, Short.MAX_VALUE)
                .addGroup(priceDiscountLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yes2)
                    .addComponent(cancel2))
                .addGap(38, 38, 38))
        );

        basePanel.addTab("总额特价", priceDiscount);

        goodsGifts.setBackground(new java.awt.Color(211, 220, 249));

        goodsGiftsSettingPanel.setBackground(new java.awt.Color(211, 220, 249));
        goodsGiftsSettingPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "设置商品赠送", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        relevantGoodsInfoTabel_Goods.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                true, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        giftRelevantGoodsInfo_Goods.setViewportView(relevantGoodsInfoTabel_Goods);

        giftRelevantGoodsIDLabel_Goods.setText("输入活动商品标识：");

        giftRelevantGoodsIDInput_Goods.setViewportView(giftRelevantGoodsIDText);

        showRelevantGoodsInfo_Goods.setText("显示活动商品信息");

        relevantGiftsIDLabel_Goods.setText("输入赠送商品标识：");

        goodsGiftIDInput.setViewportView(goodsGiftIDtext);

        showRelevantGiftInfo.setText("显示赠送商品信息");
        showRelevantGiftInfo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showRelevantGiftInfoActionPerformed(evt);
            }
        });

        goodsInfoLabel_Goods.setText("活动商品信息：");

        giftsInfoLabel_Goods.setText("赠送商品信息：");

        giftsInfoTable_Goods.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                true, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        giftsInfo_Goods.setViewportView(giftsInfoTable_Goods);

        giftsNumLabel_Goods.setText("赠送数量：");

        giftsNumInput_Goods.setViewportView(jTextPane15);

        goodsGiftBeginLabel.setText("赠送开始日期：");

        goodsGiftBegin_Year.setViewportView(goodsGiftBegin_YearText);

        beginYearLabel3.setText("年");

        goodsGiftBegin_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        begin_MonthLabel3.setText("月");

        goodsGiftBegin_Day.setViewportView(jTextPane24);

        beginDayLabel3.setText("日");

        goodsGiftEndLabel.setText("赠送开始日期：");

        goodsGiftEnd_Year.setViewportView(goodsGiftEnd_Yeartext);

        endYearLabel3.setText("年");

        goodsGiftEnd_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
        goodsGiftEnd_Month.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                goodsGiftEnd_MonthActionPerformed(evt);
            }
        });

        endMonthLabel3.setText("月");

        goodsGiftEnd_Day.setViewportView(jTextPane26);

        endDayLabel3.setText("日");

        addgoodsGift.setText("添加");

        cancelGoodsGift.setText("取消");

        javax.swing.GroupLayout goodsGiftsSettingPanelLayout = new javax.swing.GroupLayout(goodsGiftsSettingPanel);
        goodsGiftsSettingPanel.setLayout(goodsGiftsSettingPanelLayout);
        goodsGiftsSettingPanelLayout.setHorizontalGroup(
            goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(relevantGiftsIDLabel_Goods)
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addComponent(giftRelevantGoodsIDLabel_Goods)
                        .addGap(18, 18, 18)
                        .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(giftRelevantGoodsIDInput_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(61, 61, 61)
                                .addComponent(showRelevantGoodsInfo_Goods))
                            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(goodsGiftIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                .addGap(226, 226, 226)
                                .addComponent(showRelevantGiftInfo))))
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(goodsGiftBeginLabel)
                            .addComponent(giftsInfoLabel_Goods)
                            .addComponent(goodsInfoLabel_Goods)
                            .addComponent(goodsGiftEndLabel))
                        .addGap(15, 15, 15)
                        .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(giftsInfo_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(giftRelevantGoodsInfo_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                .addGap(3, 3, 3)
                                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                        .addComponent(goodsGiftBegin_Year, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(beginYearLabel3)
                                        .addGap(10, 10, 10)
                                        .addComponent(goodsGiftBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(begin_MonthLabel3)
                                        .addGap(10, 10, 10)
                                        .addComponent(goodsGiftBegin_Day, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(beginDayLabel3))
                                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                        .addComponent(goodsGiftEnd_Year, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(endYearLabel3)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(goodsGiftEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(10, 10, 10)
                                        .addComponent(endMonthLabel3)
                                        .addGap(10, 10, 10)
                                        .addComponent(goodsGiftEnd_Day, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(endDayLabel3)))
                                .addGap(49, 49, 49)
                                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                        .addComponent(giftsNumLabel_Goods)
                                        .addGap(18, 18, 18)
                                        .addComponent(giftsNumInput_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                        .addGap(14, 14, 14)
                                        .addComponent(addgoodsGift)
                                        .addGap(51, 51, 51)
                                        .addComponent(cancelGoodsGift)))))))
                .addContainerGap(20, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        goodsGiftsSettingPanelLayout.setVerticalGroup(
            goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addComponent(giftRelevantGoodsIDLabel_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(relevantGiftsIDLabel_Goods))
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addComponent(giftRelevantGoodsIDInput_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(goodsGiftIDInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addComponent(showRelevantGoodsInfo_Goods)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(showRelevantGiftInfo)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(goodsInfoLabel_Goods)
                    .addComponent(giftRelevantGoodsInfo_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftsInfo_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(giftsInfoLabel_Goods))
                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addGap(17, 17, 17)
                        .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                .addComponent(goodsGiftBeginLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(goodsGiftEndLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(giftsNumLabel_Goods)
                            .addComponent(giftsNumInput_Goods, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(endYearLabel3)
                                .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                    .addComponent(goodsGiftBegin_Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(goodsGiftEnd_Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(goodsGiftBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(beginYearLabel3)
                                .addComponent(begin_MonthLabel3))
                            .addGroup(goodsGiftsSettingPanelLayout.createSequentialGroup()
                                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(beginDayLabel3)
                                    .addComponent(goodsGiftBegin_Day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(goodsGiftEnd_Day, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(endDayLabel3, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(endMonthLabel3)
                                        .addComponent(goodsGiftEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
                .addGap(40, 40, 40))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, goodsGiftsSettingPanelLayout.createSequentialGroup()
                .addContainerGap(235, Short.MAX_VALUE)
                .addGroup(goodsGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(addgoodsGift)
                    .addComponent(cancelGoodsGift))
                .addGap(30, 30, 30))
        );

        goodsGiftListLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        goodsGiftListLabel.setText("商品赠送列表");

        goodGiftListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "活动商品", "赠送商品", "开始日期", "结束日期", "赠送数量"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        goodsGiftList.setViewportView(goodGiftListTable);

        deleteGoodsGift.setText("删除选中策略");

        yes3.setText("确定");

        cancel3.setText("取消");

        javax.swing.GroupLayout goodsGiftsLayout = new javax.swing.GroupLayout(goodsGifts);
        goodsGifts.setLayout(goodsGiftsLayout);
        goodsGiftsLayout.setHorizontalGroup(
            goodsGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsGiftsLayout.createSequentialGroup()
                .addGap(185, 185, 185)
                .addComponent(yes3)
                .addGap(164, 164, 164)
                .addComponent(cancel3)
                .addContainerGap(202, Short.MAX_VALUE))
            .addGroup(goodsGiftsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(goodsGiftList, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)
                .addGap(19, 19, 19))
            .addGroup(goodsGiftsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(goodsGiftListLabel)
                .addGap(112, 112, 112)
                .addComponent(deleteGoodsGift)
                .addContainerGap(354, Short.MAX_VALUE))
            .addGroup(goodsGiftsLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(goodsGiftsSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 617, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(27, Short.MAX_VALUE))
        );
        goodsGiftsLayout.setVerticalGroup(
            goodsGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(goodsGiftsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(goodsGiftsSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(goodsGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(goodsGiftListLabel)
                    .addComponent(deleteGoodsGift))
                .addGap(18, 18, 18)
                .addComponent(goodsGiftList, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(goodsGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cancel3)
                    .addComponent(yes3))
                .addContainerGap())
        );

        basePanel.addTab("商品赠送", goodsGifts);

        priceGifts.setBackground(new java.awt.Color(211, 220, 249));

        priceGiftsSettingPanel.setBackground(new java.awt.Color(211, 220, 249));
        priceGiftsSettingPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "设置总额赠送", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        qualifiedPriceLabel_Gift.setText("输入赠送额度：");

        qualifiedPriceInput_Gift.setViewportView(qualifiedPriceText_Gift);

        giftRelevantGoodsIDLabel_Price.setText("输入赠送商品标识：");

        giftRelevantGoodsIDInput_Price.setViewportView(giftRelevantGoodsIDText_Price);

        showGiftsInfo_Price.setText("显示赠送商品信息");
        showGiftsInfo_Price.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showGiftsInfo_PriceActionPerformed(evt);
            }
        });

        giftsInfoLabel_Price.setText("赠送商品信息：");

        giftsInfoTable_Price.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "商品标识", "商品描述", "商品价格"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                true, true, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        giftsInfo_Price.setViewportView(giftsInfoTable_Price);

        addPriceGift.setText("添加");

        cancelPeiceGift.setText("取消");

        giftNumLabel_Price.setText("赠送数量：");

        giftNumInput_Price.setViewportView(giftNumText_Price);

        priceGiftBeginLabel.setText("赠送开始日期：");

        priceGiftEndLabel.setText("赠送结束日期：");

        priceGiftBegin_Year.setViewportView(priceGiftBegin_YearTest);

        priceGiftEnd_Year.setViewportView(priceGiftEnd_YearTest);

        endYearLabel4.setText("年");

        beginYearLabel4.setText("年");

        priceGiftBegin_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        priceGiftEnd_Month.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));

        beginMonthLabel4.setText("月");

        endMonthLabel4.setText("月");

        priceGiftBegin_Day.setViewportView(priceGiftBegin_DayText);

        priceGiftEnd_Day.setViewportView(priceGiftEnd_DayText);

        beginDayLabel4.setText("日");

        endDayLabel4.setText("日");

        javax.swing.GroupLayout priceGiftsSettingPanelLayout = new javax.swing.GroupLayout(priceGiftsSettingPanel);
        priceGiftsSettingPanel.setLayout(priceGiftsSettingPanelLayout);
        priceGiftsSettingPanelLayout.setHorizontalGroup(
            priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(giftRelevantGoodsIDLabel_Price)
                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                        .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(qualifiedPriceLabel_Gift)
                            .addComponent(giftsInfoLabel_Price))
                        .addGap(47, 47, 47)
                        .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(giftsInfo_Price, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(qualifiedPriceInput_Gift, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(giftRelevantGoodsIDInput_Price, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(50, 50, 50)
                                .addComponent(showGiftsInfo_Price))))
                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                        .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(priceGiftEndLabel)
                            .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(giftNumLabel_Price)
                                    .addComponent(priceGiftBeginLabel))
                                .addGap(33, 33, 33)
                                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                                        .addComponent(priceGiftBegin_Year, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(beginYearLabel4)
                                        .addGap(18, 18, 18)
                                        .addComponent(priceGiftBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(beginMonthLabel4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(priceGiftBegin_Day, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(beginDayLabel4))
                                    .addComponent(giftNumInput_Price, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                                        .addComponent(priceGiftEnd_Year, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(endYearLabel4)
                                        .addGap(18, 18, 18)
                                        .addComponent(priceGiftEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(endMonthLabel4)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(priceGiftEnd_Day, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(endDayLabel4)))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(addPriceGift)
                        .addGap(64, 64, 64)
                        .addComponent(cancelPeiceGift)
                        .addGap(41, 41, 41)))
                .addContainerGap(13, Short.MAX_VALUE))
        );
        priceGiftsSettingPanelLayout.setVerticalGroup(
            priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                        .addComponent(qualifiedPriceLabel_Gift, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(giftRelevantGoodsIDLabel_Price))
                    .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                            .addComponent(qualifiedPriceInput_Gift, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(giftRelevantGoodsIDInput_Price, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(showGiftsInfo_Price, javax.swing.GroupLayout.Alignment.TRAILING)))
                .addGap(18, 18, 18)
                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftsInfoLabel_Price)
                    .addComponent(giftsInfo_Price, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(giftNumLabel_Price)
                    .addComponent(giftNumInput_Price, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                        .addComponent(priceGiftBeginLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addComponent(priceGiftEndLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                        .addGap(35, 35, 35))
                    .addGroup(priceGiftsSettingPanelLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(beginYearLabel4)
                                .addComponent(priceGiftBegin_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(beginMonthLabel4))
                            .addComponent(priceGiftBegin_Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(priceGiftBegin_Day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(beginDayLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(priceGiftEnd_Year, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(endYearLabel4)
                                .addComponent(priceGiftEnd_Month, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(endMonthLabel4))
                            .addComponent(priceGiftEnd_Day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(priceGiftsSettingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(endDayLabel4)
                                .addComponent(addPriceGift, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(cancelPeiceGift)))))
                .addContainerGap())
        );

        priceGiftListLabel.setFont(new java.awt.Font("方正舒体", 0, 14));
        priceGiftListLabel.setText("总额赠送列表");

        priceGiftListtable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "活动额度", "赠送商品", "赠送数量", "开始日期", "结束日期"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        priceGiftList.setViewportView(priceGiftListtable);

        yes4.setText("确定");
        yes4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yes4ActionPerformed(evt);
            }
        });

        cancel4.setText("取消");

        javax.swing.GroupLayout priceGiftsLayout = new javax.swing.GroupLayout(priceGifts);
        priceGifts.setLayout(priceGiftsLayout);
        priceGiftsLayout.setHorizontalGroup(
            priceGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceGiftsLayout.createSequentialGroup()
                .addGroup(priceGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(priceGiftsLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addGroup(priceGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(priceGiftListLabel)
                            .addComponent(priceGiftsSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, priceGiftsLayout.createSequentialGroup()
                                .addComponent(priceGiftList, javax.swing.GroupLayout.PREFERRED_SIZE, 572, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(16, 16, 16))))
                    .addGroup(priceGiftsLayout.createSequentialGroup()
                        .addGap(201, 201, 201)
                        .addComponent(yes4)
                        .addGap(152, 152, 152)
                        .addComponent(cancel4)))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        priceGiftsLayout.setVerticalGroup(
            priceGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(priceGiftsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(priceGiftsSettingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(priceGiftListLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(priceGiftList, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(priceGiftsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cancel4)
                    .addComponent(yes4))
                .addContainerGap(52, Short.MAX_VALUE))
        );

        basePanel.addTab("总额赠送", priceGifts);

        deleteStragegy.setBackground(new java.awt.Color(211, 220, 249));

        discountPanel.setBackground(new java.awt.Color(211, 220, 249));
        discountPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "特价策略列表", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        discountListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "特价属性", "特价商品", "商品描述", "商品原价", "商品特价", "特价额度", "折扣率", "开始日期", "结束日期"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        discountList.setViewportView(discountListTable);

        deleteDiscount.setText("删除选中策略");
        deleteDiscount.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteDiscountActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout discountPanelLayout = new javax.swing.GroupLayout(discountPanel);
        discountPanel.setLayout(discountPanelLayout);
        discountPanelLayout.setHorizontalGroup(
            discountPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(discountPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(discountPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(discountPanelLayout.createSequentialGroup()
                        .addComponent(discountList, javax.swing.GroupLayout.DEFAULT_SIZE, 598, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, discountPanelLayout.createSequentialGroup()
                        .addComponent(deleteDiscount)
                        .addGap(99, 99, 99))))
        );
        discountPanelLayout.setVerticalGroup(
            discountPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(discountPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(discountList, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(deleteDiscount)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        giftPanel.setBackground(new java.awt.Color(211, 220, 249));
        giftPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED), "赠送策略列表", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("方正舒体", 0, 14), new java.awt.Color(0, 51, 153))); // NOI18N

        giftListTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "赠送属性", "活动商品", "活动额度", "赠送商品", "赠送数量", "开始日期", "结束日期"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        giftList.setViewportView(giftListTable);

        deleteGift.setText("删除选中策略");
        deleteGift.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteGiftActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout giftPanelLayout = new javax.swing.GroupLayout(giftPanel);
        giftPanel.setLayout(giftPanelLayout);
        giftPanelLayout.setHorizontalGroup(
            giftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(giftPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(giftList, javax.swing.GroupLayout.PREFERRED_SIZE, 595, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, giftPanelLayout.createSequentialGroup()
                .addContainerGap(391, Short.MAX_VALUE)
                .addComponent(deleteGift)
                .addGap(119, 119, 119))
        );
        giftPanelLayout.setVerticalGroup(
            giftPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(giftPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(giftList, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)
                .addComponent(deleteGift)
                .addContainerGap())
        );

        yes5.setText("确定");

        cancel5.setText("取消");
        cancel5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancel5ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout deleteStragegyLayout = new javax.swing.GroupLayout(deleteStragegy);
        deleteStragegy.setLayout(deleteStragegyLayout);
        deleteStragegyLayout.setHorizontalGroup(
            deleteStragegyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(deleteStragegyLayout.createSequentialGroup()
                .addGroup(deleteStragegyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(deleteStragegyLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addGroup(deleteStragegyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(giftPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(discountPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(deleteStragegyLayout.createSequentialGroup()
                        .addGap(196, 196, 196)
                        .addComponent(yes5)
                        .addGap(128, 128, 128)
                        .addComponent(cancel5)))
                .addContainerGap(14, Short.MAX_VALUE))
        );
        deleteStragegyLayout.setVerticalGroup(
            deleteStragegyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(deleteStragegyLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(discountPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(giftPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(38, 38, 38)
                .addGroup(deleteStragegyLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(yes5)
                    .addComponent(cancel5))
                .addGap(38, 38, 38))
        );

        basePanel.addTab("删除策略", deleteStragegy);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 670, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(basePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 556, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void showDiscountGoodsInfoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showDiscountGoodsInfoActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_showDiscountGoodsInfoActionPerformed

private void yes1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yes1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_yes1ActionPerformed

private void cancel_setActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel_setActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancel_setActionPerformed

private void showRelevantGiftInfoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showRelevantGiftInfoActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_showRelevantGiftInfoActionPerformed

private void showGiftsInfo_PriceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showGiftsInfo_PriceActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_showGiftsInfo_PriceActionPerformed

private void yes4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yes4ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_yes4ActionPerformed

private void goodsGiftEnd_MonthActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_goodsGiftEnd_MonthActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_goodsGiftEnd_MonthActionPerformed

private void deleteDiscountActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteDiscountActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_deleteDiscountActionPerformed

private void deleteGiftActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteGiftActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_deleteGiftActionPerformed

private void cancel5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancel5ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_cancel5ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MarketingStrategy.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MarketingStrategy.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MarketingStrategy.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MarketingStrategy.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MarketingStrategy().setVisible(true);
            }
        });
    }
}
